<?php

class Admin_Form_UsuarioAlterarSenha extends Twitter_Bootstrap_Form_Horizontal
{

    public function init()
    {
        $this->setIsArray(true)
             ->setElementsBelongTo('');       
        
        $this->setAction('/admin/usuarios/alterar-senha')
             ->setName('Form_AlterarSenha')
             ->setAttrib('id', 'form_alterar_senha')
             ->setMethod('post');    
        

        $this->addElement('password', 'senhaAtual', array('label'        => 'Senha Atual:',
                                                          'required'     => true,
                                                          'class'        => 'span6'
                          ));        
        

        $this->addElement('password', 'novaSenha',  array('label'        => 'Nova Senha:',
                                                          'required'     => true,
                                                          'class'        => 'span6'
                          ));        
        

        $this->addElement('password', 'confirmarNovaSenha',  array('label'        => 'Confirmar Nova Senha:',
                                                                   'required'     => true,
                                                                   'class'        => 'span6'
                          ));  
        
        
        $this->addElement('submit', 'btnConsultar', array('label' => 'Modificar Senha',
                                                          'class' => 'btn btn-primary'));        
        
    }
}